<?
CModule::IncludeModule("iblock");
function GetCommentCounterByProductID($id){
$result = CIBlockElement::GetList(array(),array("IBLOCK_ID"=>"48","ACTIVE"=>"Y","PROPERTY_PRODUCT_ID"=>$id));
$counter = 0;
while($res = $result->GetNextElement()):
	$counter++;
endwhile;
return $counter;
}
?>